//package com.ruoyi.project.zxshop.web.controller.monitor;
//
//import com.ruoyi.common.utils.poi.ExcelUtil;
//import com.ruoyi.framework.aspectj.lang.annotation.Log;
//import com.ruoyi.framework.web.controller.BaseController;
//import com.ruoyi.framework.web.domain.AjaxResult;
//import com.ruoyi.framework.web.page.TableDataInfo;
//import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
//import com.ruoyi.project.monitor.domain.SysLogininfor;
//import com.ruoyi.project.system.service.ISysLogininforService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.security.access.prepost.PreAuthorize;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.List;
//
//
///**
// * 系统访问记录
// *
// * @author ruoyi
// */
//@RestController
//@RequestMapping("/monitor/logininfor")
//public class SysLogininforController extends BaseController {
//    @Autowired
//    private ISysLogininforService logininforService;
//
//    @PreAuthorize("@ss.hasPermi('monitor:logininfor:list')")
//    @GetMapping("/list")
//    public TableDataInfo list(SysLogininfor logininfor) {
//        startPage();
//        List<SysLogininfor> list = logininforService.selectLogininforList(logininfor);
//        return getDataTable(list);
//    }
//
//    @Log(title = "登陆日志", businessType = BusinessType.EXPORT)
//    @PreAuthorize("@ss.hasPermi('monitor:logininfor:export')")
//    @GetMapping("/export")
//    public AjaxResult export(SysLogininfor logininfor) {
//        List<SysLogininfor> list = logininforService.selectLogininforList(logininfor);
//        ExcelUtil<SysLogininfor> util = new ExcelUtil<SysLogininfor>(SysLogininfor.class);
//        return util.exportExcel(list, "登陆日志");
//    }
//
//    @PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')")
//    @Log(title = "登陆日志", businessType = BusinessType.DELETE)
//    @DeleteMapping("/{infoIds}")
//    public AjaxResult remove(@PathVariable Long[] infoIds) {
//        return toAjax(logininforService.deleteLogininforByIds(infoIds));
//    }
//
//    @PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')")
//    @Log(title = "登陆日志", businessType = BusinessType.CLEAN)
//    @DeleteMapping("/clean")
//    public AjaxResult clean() {
//        logininforService.cleanLogininfor();
//        return AjaxResult.success();
//    }
//}
